<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
</head>
<body>
				<c:forEach items="${alist }" var="a" varStatus="status">				     
				      <div class="addr-item" id="aitem${status.index}" >
			
						<div class="tdf1">${a.aname}</div>
						<div class="tdf3 tdt-a_l">${a.uaddress}</div>
						
						<div class="tdf1">${user.uphone}</div>
						<div class="tdf1 order">
							<a href="javascript:void(0)" onclick="adelete(${status.index})">删除</a>
						</div>
						<c:if test="${a.adefault==1}">
						<div class="tdf1">
							<a href="javascript:void(0)" class="default active">默认地址</a>
						</div>
						</c:if>
						<c:if test="${a.adefault==0}">
						<div class="tdf1">
						<a href="javascript:void(0)" class="default" onclick="updateDefault(${status.index})">设为默认</a>
						</div>
						</c:if>
					</div>
				   </c:forEach>
</body>
</html>
